package cloud.xlh.digital_power_order.service;

import cloud.xlh.digital_power_order.config.DigitalPowerPayRemoteCall;
import cloud.xlh.digital_power_order.util.StringUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/8/13 17:14
 * @ Description:
 */
@Service
public class RemoteCallManageService {

    @Resource
    private DigitalPowerPayRemoteCall digitalPowerPayRemoteCall;

    public Object getRemoteCallService(String beanName) {
        switch (StringUtil.setFirstByteLowerCase(beanName)) {
            case "digitalPowerPayRemoteCall": return digitalPowerPayRemoteCall;
            default: return null;
        }
    }
}
